<%@ page import="sige.Funcionario" %>
<!doctype html>
<html>
    <head>
        <meta name="layout" content="main">
        <g:set var="entityName" value="${message(code: 'funcionario.label', default: 'Funcionario')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>        
        <ul class="breadcrumb">
            <li>
                <a href="${createLink(uri: '/')}">
                  <i class="icon-home"></i>
                  <g:message code="default.home.label"/>
                </a>
                <span class="divider"> . </span>
            </li>
            <li>
                <g:link action="list">
                    <i class="icon-list"></i>
                    <g:message code="default.list.label" args="[entityName]" />
                </g:link>
                <span class="divider"> . </span>
            </li>
            <li>
                <g:link class="create" action="create">
                    <i class="icon-file"></i>
                    <g:message code="default.new.label" args="[entityName]" />
                </g:link>
            </li>
        </ul>
        <div id="show-funcionario" class="content scaffold-show" role="main">
            <center>
              <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            </center>
            <g:if test="${flash.message}">
              <div class="alert alert-info">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                ${flash.message}
              </div>
            </g:if>
            <div class="span9 offset3">
                
                <div class="span8 well">
                <ol >
                
                <g:if test="${funcionarioInstance?.nome}">
				<li class="fieldcontain">
					<span id="nome-label" class="property-label"><g:message code="funcionario.nome.label" default="Nome" /></span>
					
						<span class="property-value" aria-labelledby="nome-label"><g:fieldValue bean="${funcionarioInstance}" field="nome"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.email}">
				<li class="fieldcontain">
					<span id="email-label" class="property-label"><g:message code="funcionario.email.label" default="Email" /></span>
					
						<span class="property-value" aria-labelledby="email-label"><g:fieldValue bean="${funcionarioInstance}" field="email"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.usuario}">
				<li class="fieldcontain">
					<span id="usuario-label" class="property-label"><g:message code="funcionario.usuario.label" default="Usuario" /></span>
					
						<span class="property-value" aria-labelledby="usuario-label"><g:link controller="usuario" action="show" id="${funcionarioInstance?.usuario?.id}">${funcionarioInstance?.usuario?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.dataDeNascimento}">
				<li class="fieldcontain">
					<span id="dataDeNascimento-label" class="property-label"><g:message code="funcionario.dataDeNascimento.label" default="Data De Nascimento" /></span>
					
						<span class="property-value" aria-labelledby="dataDeNascimento-label"><g:formatDate date="${funcionarioInstance?.dataDeNascimento}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.celular}">
				<li class="fieldcontain">
					<span id="celular-label" class="property-label"><g:message code="funcionario.celular.label" default="Celular1" /></span>
					
						<span class="property-value" aria-labelledby="celular-label"><g:fieldValue bean="${funcionarioInstance}" field="celular"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.celularSecundario}">
				<li class="fieldcontain">
					<span id="celularSecundario-label" class="property-label"><g:message code="funcionario.celularSecundario.label" default="Celular2" /></span>
					
						<span class="property-value" aria-labelledby="celularSecundario-label"><g:fieldValue bean="${funcionarioInstance}" field="celularSecundario"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.cidade}">
				<li class="fieldcontain">
					<span id="cidade-label" class="property-label"><g:message code="funcionario.cidade.label" default="Cidade" /></span>
					
						<span class="property-value" aria-labelledby="cidade-label"><g:fieldValue bean="${funcionarioInstance}" field="cidade"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.cpf}">
				<li class="fieldcontain">
					<span id="cpf-label" class="property-label"><g:message code="funcionario.cpf.label" default="Cpf" /></span>
					
						<span class="property-value" aria-labelledby="cpf-label"><g:fieldValue bean="${funcionarioInstance}" field="cpf"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.dataDeAdmissao}">
				<li class="fieldcontain">
					<span id="dataDeAdmissao-label" class="property-label"><g:message code="funcionario.dataDeAdmissao.label" default="Data Admissão" /></span>
					
						<span class="property-value" aria-labelledby="dataDeAdmissao-label"><g:formatDate date="${funcionarioInstance?.dataDeAdmissao}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.endereco}">
				<li class="fieldcontain">
					<span id="endereco-label" class="property-label"><g:message code="funcionario.endereco.label" default="Endereco" /></span>
					
						<span class="property-value" aria-labelledby="endereco-label"><g:fieldValue bean="${funcionarioInstance}" field="endereco"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.escolaridade}">
				<li class="fieldcontain">
					<span id="escolaridade-label" class="property-label"><g:message code="funcionario.escolaridade.label" default="Escolaridade" /></span>
					
						<span class="property-value" aria-labelledby="escolaridade-label"><g:fieldValue bean="${funcionarioInstance}" field="escolaridade"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.estado}">
				<li class="fieldcontain">
					<span id="estado-label" class="property-label"><g:message code="funcionario.estado.label" default="Estado" /></span>
					
						<span class="property-value" aria-labelledby="estado-label"><g:fieldValue bean="${funcionarioInstance}" field="estado"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.estadoCivil}">
				<li class="fieldcontain">
					<span id="estadoCivil-label" class="property-label"><g:message code="funcionario.estadoCivil.label" default="Estado Civil" /></span>
					
						<span class="property-value" aria-labelledby="estadoCivil-label"><g:fieldValue bean="${funcionarioInstance}" field="estadoCivil"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.numFilhos}">
				<li class="fieldcontain">
					<span id="numFilhos-label" class="property-label"><g:message code="funcionario.numFilhos.label" default="Num Filhos" /></span>
					
						<span class="property-value" aria-labelledby="numFilhos-label"><g:fieldValue bean="${funcionarioInstance}" field="numFilhos"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.orgaoExpedidor}">
				<li class="fieldcontain">
					<span id="orgaoExpedidor-label" class="property-label"><g:message code="funcionario.orgaoExpedidor.label" default="Orgao Expedidor" /></span>
					
						<span class="property-value" aria-labelledby="orgaoExpedidor-label"><g:fieldValue bean="${funcionarioInstance}" field="orgaoExpedidor"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.rg}">
				<li class="fieldcontain">
					<span id="rg-label" class="property-label"><g:message code="funcionario.rg.label" default="Rg" /></span>
					
						<span class="property-value" aria-labelledby="rg-label"><g:fieldValue bean="${funcionarioInstance}" field="rg"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.salario}">
				<li class="fieldcontain">
					<span id="salario-label" class="property-label"><g:message code="funcionario.salario.label" default="Salario" /></span>
					
						<span class="property-value" aria-labelledby="salario-label"><g:fieldValue bean="${funcionarioInstance}" field="salario"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${funcionarioInstance?.telefone}">
				<li class="fieldcontain">
					<span id="telefone-label" class="property-label"><g:message code="funcionario.telefone.label" default="Telefone" /></span>
					
						<span class="property-value" aria-labelledby="telefone-label"><g:fieldValue bean="${funcionarioInstance}" field="telefone"/></span>
					
				</li>
				</g:if>
                        
                </ol>
                </div>
                <g:form>
                    <fieldset class="form-actions span8">
                        <g:hiddenField name="id" value="${funcionarioInstance?.id}" />
                        <g:link class="btn btn-warning" action="edit" id="${funcionarioInstance?.id}">
                            <i class="icon-edit icon-white"></i>
                            <g:message code="default.button.edit.label" default="Edit" />
                        </g:link>
                        <a data-toggle="modal" href="#myModal" class="btn btn-danger">
                            <i class="icon-trash icon-white"></i>
                            <g:message code="default.button.delete.label" default="Delete" /> 
                        </a>
                    </fieldset>
                    <!--------MODAL----------->
                    <div class="modal hide" id="myModal">
                        <div class="modal-header">
                            <a class="close" data-dismiss="modal">×</a>
                            <h3><g:message code="default.button.delete.atention.message" default="Atenção!" /></h3>
                        </div>
                        <div class="modal-body">
                            <p><g:message code="default.button.delete.confirm.message" default="Are you sure?" /> </p>
                        </div>
                        <div class="modal-footer">
                            <a class="btn" data-dismiss="modal">
                                <g:message code="default.cancel.label" default="Cancelar" />
                            </a>
                            <g:actionSubmit class="btn btn-danger" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" />
                        </div>
                    </div>
                </g:form>
            </div><!--/span8-->
        </div><!--/show-funcionario-->
    </body>
</html>

